import org.junit.Test;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;

/*
 * @Author:cxs
 * @Date:2021/10/1  9:56
 * @Version 1.0
 * @Motto:放下杂念,只为迎接明天更好的自己
 * */
public class aaa {
    @Test
    public void test01() throws ParseException {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        String matt = "2021-10-01";
        System.out.println(sdf.parse(matt));
    }
}
